/*
 * ObimpXStatusForm.java
 *
 * Created on 21 Январь 2011 г., 10:18
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jimm.forms;


// #sijapp cond.if protocols_OBIMP is "true" #
// #sijapp cond.if modules_XSTATUSES is "true" #
import jimm.ui.*;
import protocol.*;

/**
 *
 * @author Vladimir Kryukov
 */
public class ObimpXStatusForm extends SomeXStatusForm implements TextBoxListener {
    private InputTextBox message = new InputTextBox().create("status_message", 512);
    
    public ObimpXStatusForm(Protocol protocol) {
        super(protocol);
    }

    public void textboxAction(InputTextBox box, boolean ok) {
        if ((message == box) && ok) {
            setXStatus(message.getString(), "");
            back();
        }
    }

    protected void onStatusSelected() {
        message.setString(xst_titles[xstatus]);
        message.setTextBoxListener(this);
        message.show();
    }
}
// #sijapp cond.end #
// #sijapp cond.end #
